package com.yangyouli.unity_demo_server.entity;

import org.apache.ibatis.type.Alias;

@Alias(value = "user")
public class User {
	private int id;
	private String account;
	private String password;
	private String nickname;
	private String mail;
	private String backup1;
	private String backup2;
	private String backup3;
	
	public User() {}
	
	public User(int id, String account, String password) {
		this.id = id;
		this.account = account;
		this.password = password;
	}
	
	public User(int id, String account, String password, String nickname) {
		this(id, account, password);
		this.nickname = nickname;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getBackup1() {
		return backup1;
	}

	public void setBackup1(String backup1) {
		this.backup1 = backup1;
	}

	public String getBackup2() {
		return backup2;
	}

	public void setBackup2(String backup2) {
		this.backup2 = backup2;
	}

	public String getBackup3() {
		return backup3;
	}

	public void setBackup3(String backup3) {
		this.backup3 = backup3;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", account=" + account + ", password=" + password + ", nickname=" + nickname
				+ ", mail=" + mail + "]";
	}
}
